package top.tagao.m01_structuralPatterns.s_02_adapter.square;

/**
 * @author fu-xiao-liu
 * @Date 2022/7/25 23:26
 */
public class SquarePeg {
    private double width;

    public SquarePeg(double width) {
        this.width = width;
    }

    public double getWidth() {
        return width;
    }
    public double getSquare() {
        double result;
        result = Math.pow(this.width, 2);
        return result;
    }
}
